/**
 * Created by LeungZ on 2016/8/19.
 */
class Replicas {
    constructor(replicas, $modalInstance) {
        'ngInject';
        this._modalInstance = $modalInstance;
        this.name = replicas.name;
        this.created = replicas.podCreated;
        this.desired = replicas.podDesired;
    }

    cancel() {
        this._modalInstance.dismiss('cancel');
    }

    save(){
        this._modalInstance.close(this.repVal);
    }
}


export default Replicas